

package jetbrains.buildServer.server.rest.data.util;

import org.jetbrains.annotations.NotNull;

/**
 * Checks given items for duplicates. Must not be reused!
 */
public interface DuplicateChecker<ITEM> {
  /**
   * @param item
   * @return true, if item is a duplicate and was already seen, false otherwise
   */
  boolean checkDuplicateAndRemember(@NotNull ITEM item);
}